﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000241 RID: 577
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueGiveUpScRsp : IMessage<ChessRogueGiveUpScRsp>, IMessage, IEquatable<ChessRogueGiveUpScRsp>, IDeepCloneable<ChessRogueGiveUpScRsp>, IBufferMessage
	{
		// Token: 0x170007A7 RID: 1959
		// (get) Token: 0x06001A16 RID: 6678 RVA: 0x0004B656 File Offset: 0x00049856
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueGiveUpScRsp> Parser
		{
			get
			{
				return ChessRogueGiveUpScRsp._parser;
			}
		}

		// Token: 0x170007A8 RID: 1960
		// (get) Token: 0x06001A17 RID: 6679 RVA: 0x0004B65D File Offset: 0x0004985D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueGiveUpScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170007A9 RID: 1961
		// (get) Token: 0x06001A18 RID: 6680 RVA: 0x0004B66F File Offset: 0x0004986F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueGiveUpScRsp.Descriptor;
			}
		}

		// Token: 0x06001A19 RID: 6681 RVA: 0x0004B676 File Offset: 0x00049876
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGiveUpScRsp()
		{
		}

		// Token: 0x06001A1A RID: 6682 RVA: 0x0004B680 File Offset: 0x00049880
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGiveUpScRsp(ChessRogueGiveUpScRsp other) : this()
		{
			this.finishInfo_ = ((other.finishInfo_ != null) ? other.finishInfo_.Clone() : null);
			this.stageInfo_ = ((other.stageInfo_ != null) ? other.stageInfo_.Clone() : null);
			this.queryInfo_ = ((other.queryInfo_ != null) ? other.queryInfo_.Clone() : null);
			this.rogueAeonInfo_ = ((other.rogueAeonInfo_ != null) ? other.rogueAeonInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.rogueGetInfo_ = ((other.rogueGetInfo_ != null) ? other.rogueGetInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001A1B RID: 6683 RVA: 0x0004B73C File Offset: 0x0004993C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGiveUpScRsp Clone()
		{
			return new ChessRogueGiveUpScRsp(this);
		}

		// Token: 0x170007AA RID: 1962
		// (get) Token: 0x06001A1C RID: 6684 RVA: 0x0004B744 File Offset: 0x00049944
		// (set) Token: 0x06001A1D RID: 6685 RVA: 0x0004B74C File Offset: 0x0004994C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueFinishInfo FinishInfo
		{
			get
			{
				return this.finishInfo_;
			}
			set
			{
				this.finishInfo_ = value;
			}
		}

		// Token: 0x170007AB RID: 1963
		// (get) Token: 0x06001A1E RID: 6686 RVA: 0x0004B755 File Offset: 0x00049955
		// (set) Token: 0x06001A1F RID: 6687 RVA: 0x0004B75D File Offset: 0x0004995D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueInfo StageInfo
		{
			get
			{
				return this.stageInfo_;
			}
			set
			{
				this.stageInfo_ = value;
			}
		}

		// Token: 0x170007AC RID: 1964
		// (get) Token: 0x06001A20 RID: 6688 RVA: 0x0004B766 File Offset: 0x00049966
		// (set) Token: 0x06001A21 RID: 6689 RVA: 0x0004B76E File Offset: 0x0004996E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryInfo QueryInfo
		{
			get
			{
				return this.queryInfo_;
			}
			set
			{
				this.queryInfo_ = value;
			}
		}

		// Token: 0x170007AD RID: 1965
		// (get) Token: 0x06001A22 RID: 6690 RVA: 0x0004B777 File Offset: 0x00049977
		// (set) Token: 0x06001A23 RID: 6691 RVA: 0x0004B77F File Offset: 0x0004997F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueAeonInfo RogueAeonInfo
		{
			get
			{
				return this.rogueAeonInfo_;
			}
			set
			{
				this.rogueAeonInfo_ = value;
			}
		}

		// Token: 0x170007AE RID: 1966
		// (get) Token: 0x06001A24 RID: 6692 RVA: 0x0004B788 File Offset: 0x00049988
		// (set) Token: 0x06001A25 RID: 6693 RVA: 0x0004B790 File Offset: 0x00049990
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170007AF RID: 1967
		// (get) Token: 0x06001A26 RID: 6694 RVA: 0x0004B799 File Offset: 0x00049999
		// (set) Token: 0x06001A27 RID: 6695 RVA: 0x0004B7A1 File Offset: 0x000499A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGetInfo RogueGetInfo
		{
			get
			{
				return this.rogueGetInfo_;
			}
			set
			{
				this.rogueGetInfo_ = value;
			}
		}

		// Token: 0x06001A28 RID: 6696 RVA: 0x0004B7AA File Offset: 0x000499AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueGiveUpScRsp);
		}

		// Token: 0x06001A29 RID: 6697 RVA: 0x0004B7B8 File Offset: 0x000499B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueGiveUpScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.FinishInfo, other.FinishInfo) && object.Equals(this.StageInfo, other.StageInfo) && object.Equals(this.QueryInfo, other.QueryInfo) && object.Equals(this.RogueAeonInfo, other.RogueAeonInfo) && this.Retcode == other.Retcode && object.Equals(this.RogueGetInfo, other.RogueGetInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001A2A RID: 6698 RVA: 0x0004B85C File Offset: 0x00049A5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.finishInfo_ != null)
			{
				num ^= this.FinishInfo.GetHashCode();
			}
			if (this.stageInfo_ != null)
			{
				num ^= this.StageInfo.GetHashCode();
			}
			if (this.queryInfo_ != null)
			{
				num ^= this.QueryInfo.GetHashCode();
			}
			if (this.rogueAeonInfo_ != null)
			{
				num ^= this.RogueAeonInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueGetInfo_ != null)
			{
				num ^= this.RogueGetInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001A2B RID: 6699 RVA: 0x0004B909 File Offset: 0x00049B09
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001A2C RID: 6700 RVA: 0x0004B911 File Offset: 0x00049B11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001A2D RID: 6701 RVA: 0x0004B91C File Offset: 0x00049B1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.stageInfo_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.StageInfo);
			}
			if (this.rogueGetInfo_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.RogueGetInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rogueAeonInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.RogueAeonInfo);
			}
			if (this.queryInfo_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.QueryInfo);
			}
			if (this.finishInfo_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.FinishInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001A2E RID: 6702 RVA: 0x0004B9E8 File Offset: 0x00049BE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.finishInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.FinishInfo);
			}
			if (this.stageInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.StageInfo);
			}
			if (this.queryInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.QueryInfo);
			}
			if (this.rogueAeonInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueAeonInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueGetInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueGetInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001A2F RID: 6703 RVA: 0x0004BAA0 File Offset: 0x00049CA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueGiveUpScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.finishInfo_ != null)
			{
				if (this.finishInfo_ == null)
				{
					this.FinishInfo = new ChessRogueFinishInfo();
				}
				this.FinishInfo.MergeFrom(other.FinishInfo);
			}
			if (other.stageInfo_ != null)
			{
				if (this.stageInfo_ == null)
				{
					this.StageInfo = new ChessRogueInfo();
				}
				this.StageInfo.MergeFrom(other.StageInfo);
			}
			if (other.queryInfo_ != null)
			{
				if (this.queryInfo_ == null)
				{
					this.QueryInfo = new ChessRogueQueryInfo();
				}
				this.QueryInfo.MergeFrom(other.QueryInfo);
			}
			if (other.rogueAeonInfo_ != null)
			{
				if (this.rogueAeonInfo_ == null)
				{
					this.RogueAeonInfo = new ChessRogueAeonInfo();
				}
				this.RogueAeonInfo.MergeFrom(other.RogueAeonInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueGetInfo_ != null)
			{
				if (this.rogueGetInfo_ == null)
				{
					this.RogueGetInfo = new ChessRogueGetInfo();
				}
				this.RogueGetInfo.MergeFrom(other.RogueGetInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001A30 RID: 6704 RVA: 0x0004BBB8 File Offset: 0x00049DB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001A31 RID: 6705 RVA: 0x0004BBC4 File Offset: 0x00049DC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 42U)
					{
						if (this.stageInfo_ == null)
						{
							this.StageInfo = new ChessRogueInfo();
						}
						input.ReadMessage(this.StageInfo);
						continue;
					}
					if (num == 50U)
					{
						if (this.rogueGetInfo_ == null)
						{
							this.RogueGetInfo = new ChessRogueGetInfo();
						}
						input.ReadMessage(this.RogueGetInfo);
						continue;
					}
					if (num == 56U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 82U)
					{
						if (this.rogueAeonInfo_ == null)
						{
							this.RogueAeonInfo = new ChessRogueAeonInfo();
						}
						input.ReadMessage(this.RogueAeonInfo);
						continue;
					}
					if (num == 90U)
					{
						if (this.queryInfo_ == null)
						{
							this.QueryInfo = new ChessRogueQueryInfo();
						}
						input.ReadMessage(this.QueryInfo);
						continue;
					}
					if (num == 98U)
					{
						if (this.finishInfo_ == null)
						{
							this.FinishInfo = new ChessRogueFinishInfo();
						}
						input.ReadMessage(this.FinishInfo);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000AF2 RID: 2802
		private static readonly MessageParser<ChessRogueGiveUpScRsp> _parser = new MessageParser<ChessRogueGiveUpScRsp>(() => new ChessRogueGiveUpScRsp());

		// Token: 0x04000AF3 RID: 2803
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000AF4 RID: 2804
		public const int FinishInfoFieldNumber = 12;

		// Token: 0x04000AF5 RID: 2805
		private ChessRogueFinishInfo finishInfo_;

		// Token: 0x04000AF6 RID: 2806
		public const int StageInfoFieldNumber = 5;

		// Token: 0x04000AF7 RID: 2807
		private ChessRogueInfo stageInfo_;

		// Token: 0x04000AF8 RID: 2808
		public const int QueryInfoFieldNumber = 11;

		// Token: 0x04000AF9 RID: 2809
		private ChessRogueQueryInfo queryInfo_;

		// Token: 0x04000AFA RID: 2810
		public const int RogueAeonInfoFieldNumber = 10;

		// Token: 0x04000AFB RID: 2811
		private ChessRogueAeonInfo rogueAeonInfo_;

		// Token: 0x04000AFC RID: 2812
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04000AFD RID: 2813
		private uint retcode_;

		// Token: 0x04000AFE RID: 2814
		public const int RogueGetInfoFieldNumber = 6;

		// Token: 0x04000AFF RID: 2815
		private ChessRogueGetInfo rogueGetInfo_;
	}
}
